package com.mark.media.controller.v1;

import com.mark.media.service.StatisticsService;
import com.mark.model.common.dtos.ResponseResult;
import com.mark.model.media.dtos.StatisticDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description :  查找图文统计数据
 * @Author :  Markburt
 * @CreateDate :  2020/3/8$ 下午 03:14$
 * @UpdateUser :  Markburt
 * @UpdateDate :  2020/3/8$ 下午 03:14$
 * @UpdateRemark :  Project Build
 * @Version :  1.0
 */

@RestController
@RequestMapping("/api/v1/statistics")
public class StatisticsController {

    @Autowired
    StatisticsService statisticsService;


    /***
     * 查找图文统计数据
     * @param dto
     * @return
     */
    @PostMapping("/news")
    public ResponseResult newsData(@RequestBody StatisticDto dto){
        return statisticsService.findWmNewsStatistics(dto);
    }
}
